﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FriendTest.FriendService;

namespace FriendTest.Models
{
    public class MyPublishItem
    {
        public int itemId { get; set; }
        public UserData itemOwner { get; set; }
        public DateTime itemDate { get; set; }
        public int itemType { get; set; }
    }

    public class MyPublishStatus:MyPublishItem
    {
        public string statusContent { get; set; }

        public MyPublishStatus()
        {
            itemType = 0;
        }
    }

    public class MyPublishShare:MyPublishItem
    {
        public int resourceId { get; set; }

        public string resourceName { get; set; }

        public string resourceType { get; set; }

        public string resourceImg { get; set; }

        public MyPublishShare()
        {
            itemType = 1;
        }
    }

   
    public class MyNews
    {
        public int newsId { get; set; }
        public int userId { get; set; }
        public UserData newsFrom { get; set; }
        public MyPublishItem newsPublishItem { get; set; }
        public DateTime newsDate { get; set; }
    }

    public class MyComment
    {
        public int commentId { get; set; }
        public UserData commentFrom { get; set; }
        public string commentContent { get; set; }
        public DateTime commentDate { get; set; }
    }

    public class MyNewsList
    {
        public int newsOwnerId { get; set; }
        public string newsOwner { get; set; }
        public List<MyNews> myNewsList = new List<MyNews>();
    }

}